import {MenuUnfoldOutlined, SettingOutlined, QuestionCircleOutlined, FormOutlined} from '@ant-design/icons-vue'

export default [{
    path: '/',
    name: 'HomePage',
    redirect: '/setting/departmentManage',
    component: () => import("@/views/HomePage/index.vue"),
    children: [
        {
            path: "setting",
            name: "setting",
            meta: {title: "系统管理", icon: SettingOutlined},
            children: [
                {
                    path: "departmentManage",
                    name: "departmentManage",
                    meta: {title: "部门管理"},
                    component: () => import("@/views/DepartmentManage/index.vue")
                },
                {
                    path: "tempManage",
                    name: "tempManage",
                    meta: {title: "模板管理"},
                    component: () => import("@/views/TempManage/index.vue")
                },
                {
                    path: "userManage",
                    name: "userManage",
                    meta: {title: "用户管理"},
                    component: () => import("@/views/UserManage/index.vue")
                },
                {
                    path: "tagManage",
                    name: "tagManage",
                    meta: {title: "标签管理"},
                    component: () => import("@/views/TagManage/index.vue")
                }
            ]
        },
        {
            path: "help",
            name: "help",
            meta: {title: "板块设置", icon: FormOutlined},
            component: import("@/views/help/index.vue"),
        },
        {
            path: "payManage",
            name: "payManage",
            meta: {title: "人力薪酬", icon: MenuUnfoldOutlined},
            children: [
                {
                    component: () => import("@/views/PayManage/SelfAssessment/index.vue"),
                    path: "selfAssessment",
                    name: "selfAssessment",
                    meta: {title: "自评提报"}
                },
                {
                    component: () => import("@/views/PayManage/Approval/index.vue"),
                    path: "approval",
                    name: "approval",
                    meta: {title: "提报审批"}
                },
                {
                    component: () => import("@/views/PayManage/PayList/index.vue"),
                    path: "payList",
                    name: "payList",
                    meta: {title: "薪酬报表"}
                },
                {
                    component: () => import("@/views/PayManage/PayTemp/index.vue"),
                    path: "payTemp",
                    name: "payTemp",
                    meta: {title: "薪酬模板"}
                },
                {
                    component: () => import("@/views/PayManage/EvaluatEedit/index.vue"),
                    path: "evaluatEdit",
                    name: "evaluatEdit",
                    meta: {title: "", hidden: true, activeMenu: "/payManage/selfAssessment"}
                },
            ]
        },
    ],
},]